package com.mengmeng.demo.mapper;

import com.mengmeng.demo.user.user;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from sys_user")
    List<user> getAll();
    @Delete ("delete from sys_user where id=#{id}")
    boolean deleteById(Integer id);

    boolean update(user world);

    boolean insert(user world);


    List<user> getById(int id);

}
